<template>
	<view>
		学生列表
		<ul>
			<li v-for="(item,index) in arr">
				{{item.name}}
			</li>
		</ul>
		<input type="text" v-model="nm" style="border: #007AFF 1px solid;"/>
		<button @click="go">添加</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr:[]
			}
		},
		onLoad() {
			let that=this;
			uniCloud.callFunction({
				name: 'sz1',
				success(re){
					alert(JSON.stringify(re.result));
					that.arr = re.result;
				}
			});
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
